package com.dwb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * @author 懒猴子CG
 * @date 2020-06-28 19:00:36
 * @email 
 */
@Data
@ApiModel("订单详情")
public class SOrderDetail {

    @ApiModelProperty(value = "自增id")
    @Id
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面图片")
    private String images;

    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "订单价格")
    private BigDecimal price;

    @ApiModelProperty(value = "当前总价(单价*数量)")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "规格")
    private String spec;

    @ApiModelProperty(value = "购买数量")
    private Integer buyNumber;

    @ApiModelProperty(value = "型号")
    private String model;

    @ApiModelProperty(value = "重量（kg）")
    private BigDecimal specWeight;

    @ApiModelProperty(value = "编码")
    private String specCoding;

    @ApiModelProperty(value = "条形码")
    private String specBarcode;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundPrice;

    @ApiModelProperty(value = "退货数量")
    private Integer returnedQuantity;

    @ApiModelProperty(value = "添加时间")
    private Integer addTime;

    @ApiModelProperty(value = "更新时间")
    private Integer updTime;

}